/* ==================== 通用组件样式 ==================== */

/* Logo 呼吸动画 */
.VPHero .VPImage {
  filter: drop-shadow(-2px 4px 6px rgba(0, 0, 0, 0.2));
  padding: 18px;
  animation: logoBreath 4s ease-in-out infinite;
}

@keyframes logoBreath {
  0%, 100% {
    filter: drop-shadow(-2px 4px 6px rgba(0, 0, 0, 0.2)) 
            drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
  }
  50% {
    filter: drop-shadow(-2px 4px 6px rgba(0, 0, 0, 0.2)) 
            drop-shadow(0 0 40px rgba(96, 165, 250, 0.6));
  }
}

/* 自定义首页 hero text 字体大小 */
.VPHero .text {
  font-size: 32px !important;
}

/* 搜索按钮宽度调整 */
.VPNavBarSearch,
.VPSearch {
  min-width: 20vw;
  width: auto;
}

.VPNavBarSearch button,
.VPSearch button {
  min-width: 20vw;
  width: auto;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
}

.VPNavBarSearch button > *,
.VPSearch button > * {
  margin: 0 auto;
}

/* 微信二维码悬停效果 */
.VPSocialLink[aria-label="微信"] {
  position: relative;
}

.VPSocialLink[aria-label="微信"]::after {
  content: '';
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 200px;
  height: 200px;
  background-image: url('/service-qrcode.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  z-index: 9999;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: white;
  padding: 10px;
}

.VPSocialLink[aria-label="微信"]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* 图片样式 */
img[src='/search.png'] {
  width: 100%;
  aspect-ratio: 1 / 1;
}
